from django.urls import path, re_path

from . import views

urlpatterns = [
    path('', views.index, name='index'),
    path('list', views.getList, name='getList'),
    path('view/<int:id>', views.view, name='view'),
    re_path(r'^fun/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})$', views.fun, name='fun'),
    path('test_redirect', views.test_redirect, name='test_redirect'),
    path('create', views.create, name='create'),
    path('createData', views.createData, name='createData'),
    path('delete/<int:id>', views.delete, name='delete'),
    path('jsonData', views.jsonData, name='jsonData')
]